package com.xyl.sso1.server;

import cn.dev33.satoken.sso.SaSsoManager;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * http://localhost:9000/sso/auth
 */
@SpringBootApplication
public class SsoServer1Application {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(SsoServer1Application.class);
        application.setBannerMode(Banner.Mode.OFF);
        application.run(args);
        System.out.println();
        System.out.println("---------------------- Sa-Token SSO 统一认证中心启动成功 ----------------------");
        System.out.println(SaSsoManager.getServerConfig());
        System.out.println("统一认证登录地址：http://sa-sso-server.com:9000/sso/auth");
        System.out.println("测试账号密码：sa / 123456");
        System.out.println();
    }

}